package com.bsi.rd.framework.zuul.controller;
/*
 * Author: liusongs
 * Date: 2019/10/21 11:15
 * Content: 测试案例
 */

import com.bsi.rd.framework.zuul.remote.LoginUserServiceRemote;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/gateway/demo")
public class DemoController {

    @Autowired
    private LoginUserServiceRemote loginUserServiceRemote;

    @PostMapping("/getUser")
    public String getUser() {
        return loginUserServiceRemote.getUser();
    }
}
